package com.xiaomi.eco.dal.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 产品维度表
 * @TableName dim_product
 */
@TableName(value ="dim_product")
public class DimProductEntity implements Serializable {
    /**
     * 自增主键
     */
    private Long id;

    /**
     * 三级品类
     */
    private String catLvl3Name;

    /**
     * 四级品类
     */
    private String catLvl4Name;

    /**
     * 产品名称
     */
    private String goodsName;

    /**
     * model
     */
    private String model;

    /**
     * 公司
     */
    private String company;

    /**
     * A/N
     */
    private String aN;

    /**
     * 连接方式
     */
    private String connect;

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 自增主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 三级品类
     */
    public String getCatLvl3Name() {
        return catLvl3Name;
    }

    /**
     * 三级品类
     */
    public void setCatLvl3Name(String catLvl3Name) {
        this.catLvl3Name = catLvl3Name;
    }

    /**
     * 四级品类
     */
    public String getCatLvl4Name() {
        return catLvl4Name;
    }

    /**
     * 四级品类
     */
    public void setCatLvl4Name(String catLvl4Name) {
        this.catLvl4Name = catLvl4Name;
    }

    /**
     * 产品名称
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 产品名称
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * model
     */
    public String getModel() {
        return model;
    }

    /**
     * model
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     * 公司
     */
    public String getCompany() {
        return company;
    }

    /**
     * 公司
     */
    public void setCompany(String company) {
        this.company = company;
    }

    /**
     * A/N
     */
    public String getaN() {
        return aN;
    }

    /**
     * A/N
     */
    public void setaN(String aN) {
        this.aN = aN;
    }

    /**
     * 连接方式
     */
    public String getConnect() {
        return connect;
    }

    /**
     * 连接方式
     */
    public void setConnect(String connect) {
        this.connect = connect;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DimProductEntity other = (DimProductEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCatLvl3Name() == null ? other.getCatLvl3Name() == null : this.getCatLvl3Name().equals(other.getCatLvl3Name()))
            && (this.getCatLvl4Name() == null ? other.getCatLvl4Name() == null : this.getCatLvl4Name().equals(other.getCatLvl4Name()))
            && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getCompany() == null ? other.getCompany() == null : this.getCompany().equals(other.getCompany()))
            && (this.getaN() == null ? other.getaN() == null : this.getaN().equals(other.getaN()))
            && (this.getConnect() == null ? other.getConnect() == null : this.getConnect().equals(other.getConnect()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCatLvl3Name() == null) ? 0 : getCatLvl3Name().hashCode());
        result = prime * result + ((getCatLvl4Name() == null) ? 0 : getCatLvl4Name().hashCode());
        result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
        result = prime * result + ((getaN() == null) ? 0 : getaN().hashCode());
        result = prime * result + ((getConnect() == null) ? 0 : getConnect().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", catLvl3Name=").append(catLvl3Name);
        sb.append(", catLvl4Name=").append(catLvl4Name);
        sb.append(", goodsName=").append(goodsName);
        sb.append(", model=").append(model);
        sb.append(", company=").append(company);
        sb.append(", aN=").append(aN);
        sb.append(", connect=").append(connect);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}